module.exports = {
	table: 'uni-id-users',
	fields: [
		{
			type: 'string',
			key: 'username',
			comment: '用户名',
		},
		{
			type: 'string',
			key: 'nickname',
			comment: '用户昵称',
		},
		{
			type: 'number',
			key: 'gender',
			comment: '用户性别：0 未知 1 男性 2 女性',
		},
		{
			type: 'string',
			key: 'mobile',
			comment: '手机号码',
		},
		{
			type: 'number',
			key: 'mobile_confirmed',
			comment: '手机号验证状态：0 未验证 1 已验证',
		},
		{
			type: 'string',
			key: 'email',
			comment: '邮箱',
		},
		{
			type: 'number',
			key: 'email_confirmed',
			comment: '邮箱验证状态：0 未验证 1 已验证',
		},
		{
			type: 'string',
			key: 'password',
			comment: '密码',
		},
		{
			type: 'number',
			key: 'password_secret_version',
			comment: '密码版本',
		},
		{
			type: 'number',
			key: 'money',
			comment: '余额',
		},
		{
			type: 'number',
			key: 'score',
			comment: '积分',
		},
		{
			type: 'string',
			key: 'wx_unionid',
			comment: '微信unionid',
		},
		{
			type: 'object',
			key: 'wx_openid',
			comment: '微信各个平台openid',
		},
		{
			type: 'string',
			key: 'ali_openid',
			comment: '支付宝平台openid',
		},
		{
			type: 'number',
			key: 'last_login_date',
			comment: '最后登录时间',
		},
		{
			type: 'string',
			key: 'comment',
			comment: '备注',
		},
		{
			type: 'object',
			key: 'realname_auth',
			comment: '实名认证信息',
		},
		{
			type: 'string',
			key: 'last_login_ip',
			comment: '最后登录ip',
		},
		{
			type: 'array',
			key: 'login_ip_limit',
			comment: '登录ip列表',
		},
		{
			type: 'number',
			key: 'register_date',
			comment: '注册时间',
		},
		{
			type: 'string',
			key: 'register_ip',
			comment: '注册ip',
		},
		{
			type: 'array',
			key: 'role',
			comment: '权限',
		},
		{
			type: 'array',
			key: 'token',
			comment: 'token',
		},
		{
			type: 'number',
			key: 'status',
			comment: '用户状态：0 正常 1 禁用 2 审核中 3 审核拒绝',
		},
		{
			type: 'string',
			key: 'avatar',
			comment: '用户头像',
		},
		{
			type: 'array',
			key: 'inviter_uid',
			comment: '用户全部上级邀请者',
		},
		{
			type: 'string',
			key: 'my_invite_code',
			comment: '用户自身邀请码',
		},
		{
			type: 'array',
			key: 'd_ids',
			comment: '部门ID',
		},
		{
			type: 'array',
			key: 'e_ids',
			comment: '企业ID',
		},
		{
			type: 'string',
			key: 'apple_openid',
			comment: '苹果平台openid',
		},
		{
			type: 'array',
			key: 'dcloud_appid',
			comment: 'dcloud平台appid',
		},
		{
			type: 'object',
			key: 'third_party',
			comment: '缓存用户在三方平台的token等信息',
		},
		{
			type: 'object',
			key: 'register_env',
			comment: '注册环境信息',
		},
		{
			type: 'number',
			key: 'invite_time',
			comment: '受邀时间',
		},
		{
			type: 'array',
			key: 'identities',
			comment:
				'三方平台身份信息；一个对象代表一个身份，参数支持: provider 身份源, userInfo 三方用户信息, openid 三方openid, unionid 三方unionid, uid 三方uid',
		},
		{
			type: 'object',
			key:'vip',
			comment: '用户vip信息{name,expire_time,}',
		}
	],
};
